<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<form method="post">
	<spring:bind path="command.*">
		<c:if test="${not empty status.errorMessages}">
			<ul id="errors">
				<c:forEach var="error" items="${status.errorMessages}">
					<li>
						<c:out value="${error}" escapeXml="false" />
					</li>
				</c:forEach>
			</ul>
		</c:if>
	</spring:bind>

	<c:if test="${not empty message}">
		<c:out value="${message}" />
		<c:set var="message" value="" scope="session" />
	</c:if>

		<p>Please provide your authentication information below.</p>
		<label>Email:
		<spring:bind path="command.email">
			<input name='<c:out value="${status.expression}"/>' value='<c:out value="${status.value}"/>' type="text" size="50" maxlength="50" />
      		</spring:bind>
		</label> 
 	
	<label>Password: 
		<spring:bind path="command.password">
        			<input name='<c:out value="${status.expression}"/>' value='<c:out value="${status.value}"/>' type="password" size="15" maxlength="10" />
      		</spring:bind>
	</label>
	<input type="submit" name="Submit" value="Sign In" />
</form>
